<?php if(!class_exists('raintpl')){exit;}?><!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link href="http://localhost/kpi/html/style.css" rel="stylesheet" type="text/css" media = "screen">
<link href="http://localhost/kpi/html/print.css" rel="stylesheet" type="text/css" media = "print">

</head>
<body>
<div id = "wrapper">

<div id = "container">
	<h1 class = "header">สรุปการประเมิน</h1>
	<br>
	<div class = "center" id = "assessment">
		<button class="print" onclick="javascript:window.print()">พิมพ์รายงาน</button>
		<h2>สรุปการประเมินตนเองรายตัวบ่งชี้ตามองค์ประกอบคุณภาพ</h2>
		<table cellpadding = "0" cellspacing = "0" border = "0" class = "list">
			<tr>
				<th class = "w500">องค์ประกอบคุณภาพ</th>
				<th class = "w60">เป้าหมาย</th>
				<th class = "w110">ผลการดำเนินการ</th>
			</tr>
			<?php $counter1=-1; if( isset($group) && is_array($group) && sizeof($group) ) foreach( $group as $key1 => $value1 ){ $counter1++; ?>
			<tr class = "alt0">
				<td colspan = "3"><b><?php echo $value1["name"];?></b></td>
			</tr>
				<?php $counter2=-1; if( isset($data[$value1["id"]]) && is_array($data[$value1["id"]]) && sizeof($data[$value1["id"]]) ) foreach( $data[$value1["id"]] as $key2 => $value2 ){ $counter2++; ?>
				<tr>
					<td style = "padding-left:20px;"><i>ตัวบ่งชี้ <?php echo $value2["gid"];?>.<?php echo $value2["sub"];?></i> <?php echo $value2["name"];?></td>
					<td align = "center"><?php echo $value2["target"];?></td>
					<td align = "center"><?php echo $value2["result"];?></td>
				</tr>
				<?php } ?>
			<?php } ?>
		</table>
	</div>

	<div class = "clear"></div>
</div>

</div> <!-- wrapper -->

</body>
</html>